package mysql

import "github.com/zeromicro/go-zero/core/stores/sqlx"

var _ DaliyTradeInfoModel = (*customDaliyTradeInfoModel)(nil)

type (
	// DaliyTradeInfoModel is an interface to be customized, add more methods here,
	// and implement the added methods in customDaliyTradeInfoModel.
	DaliyTradeInfoModel interface {
		daliyTradeInfoModel
		withSession(session sqlx.Session) DaliyTradeInfoModel
	}

	customDaliyTradeInfoModel struct {
		*defaultDaliyTradeInfoModel
	}
)

// NewDaliyTradeInfoModel returns a model for the database table.
func NewDaliyTradeInfoModel(conn sqlx.SqlConn) DaliyTradeInfoModel {
	return &customDaliyTradeInfoModel{
		defaultDaliyTradeInfoModel: newDaliyTradeInfoModel(conn),
	}
}

func (m *customDaliyTradeInfoModel) withSession(session sqlx.Session) DaliyTradeInfoModel {
	return NewDaliyTradeInfoModel(sqlx.NewSqlConnFromSession(session))
}
